<!DOCTYPE html>
<style>
span.error {
	color: red;
}
</style>
<section class="content-header" style="padding: 3px 15px 0 15px;">
	<ol class="breadcrumb" id="nav_title"
		style="position:static;float:none;margin-bottom: 5px;">
		<li class="active"><i class="fa fa-home"
			style="font-size:20px;position:relative;top:2px;left:-3px;"></i>
			&nbsp; <a href="${rc.contextPath}/sys/index">首页</a></li>
		<li class="active">评估中心</li><li class="active">专家评价</li>
	</ol>
</section>
<div class="container-fluid">
	<div class="box box-primary">
		<div id="toolbar">
			<button type="button" class="btn" data-toggle="modal" data-target="#modal-add" style="margin-left:0px;padding:3px 18px;background:#3399fe;color:#fff;height: 35px;">添加</button>
			<button id="edit" type="button" class="btn" style="margin-left:10px;padding:3px 18px;background:#3399fe;color:#fff;height: 35px;">编辑</button>
			<button id="deleteBtn" type="button" class="btn" style="margin-left:10px;padding:3px 18px;background:#3399fe;color:#fff;height: 35px;">删除</button>
		</div>
		<div class="row">
			<table id="table" data-toggle="table" data-url="expertEvalList" data-striped="true" data-toolbar="#toolbar" data-pagination="true"
				data-search="true" data-page-size="10">
				<thead>
					<tr>
						<th data-checkbox="true"></th>
						<th data-align="center" data-field="id" data-sortable="true">编号</th>
						<th data-align="center" data-field="shop_name" data-sortable="true">艺术品名称</th>
						<th data-align="center" data-field="eval_content">评价内容</th>
						<th data-align="center" data-formatter="operating_status" data-events="operateEvents">评价人</th>
					</tr>
				</thead>
			</table>
		</div>
	</div>
</div>

<!-- 新增的弹窗 -->
<div class="modal fade" id="modal-add" aria-labelledby="modalAddLabel"
	aria-hidden="true" tabindex="-1">
	<div class="modal-dialog">
		<div class="modal-content">
			<form class="form-horizontal" id="addForm" action="" method="post">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
					<h4 class="modal-title" id="modalEditLabel">新增评价</h4>
				</div>
				<div class="modal-body">
					<div class="form-group">
						<input name="userId" id="userId" type="hidden" value=${user.userId}>
						<label class="col-sm-3 control-label">名&emsp;&emsp;称</label>
						<div class="col-sm-9">
							<select class="form-control" name="shopId" id="shopId">
								<option value="">--未选择--</option>
								#foreach($list in $allShopList)
								<option value="${list.shop_id}">${list.shop_name}</option>
								#end
							</select>
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">评价内容</label>
						<div class="col-sm-9">
							<textarea name="evalContent" id="evalContent" maxlength="2000"  style="resize:none" class="form-control" placeholder="请在此处输入..."></textarea>
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">评&nbsp;&nbsp;价&nbsp;&nbsp;人</label>
						<div class="col-sm-9">
						<input type="radio" id="su" name="su" checked="checked" value="0">当前登录用户&emsp;
						<input type="radio" id="nu" name="su" value="1">其他
						<input name="evalName" id="evalName" maxlength="10" type="text" class="form-control" placeholder="请输入评价人名字">
						</div>
					</div>
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-default closeBtn" data-dismiss="modal">关闭</button>
					<button id="saveBtn" type="submit" class="btn btn-primary">添加</button>
				</div>
			</form>
		</div>
	</div>
</div>

<!-- 修改的弹窗 -->
<div class="modal fade" id="modal-edit" aria-labelledby="modalEditLabel"
	aria-hidden="true" tabindex="-1">
	<div class="modal-dialog">
		<div class="modal-content">
			<form class="form-horizontal" id="addForm" action="" method="post">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
					<h4 class="modal-title" id="modalEditLabel">修改评价</h4>
				</div>
				<div class="modal-body">
					<div class="form-group">
						<input name="id" id="id" type="hidden">
						<input name="userId" id="userId2" type="hidden" value=${user.userId}>
						<label class="col-sm-3 control-label">名&emsp;&emsp;称</label>
						<div class="col-sm-9">
							<select class="form-control" name="shopId2" id="shopId2">
								<option value="">--未选择--</option>
								#foreach($list in $allShopList)
								<option value="${list.shop_id}">${list.shop_name}</option>
								#end
							</select>
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">评价内容</label>
						<div class="col-sm-9">
							<textarea name="evalContent2" id="evalContent2" maxlength="2000"  style="resize:none" class="form-control" placeholder="请在此处输入..."></textarea>
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">评&nbsp;&nbsp;价&nbsp;&nbsp;人</label>
						<div class="col-sm-9">
						<input type="radio" id="su2" name="su2" checked="checked" value="0">当前登录用户&emsp;
						<input type="radio" id="nu2" name="su2" value="1">其他
						<input name="evalName2" id="evalName2" maxlength="10" type="text" class="form-control" placeholder="请输入评价人名字">
						</div>
					</div>
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-default closeBtn" data-dismiss="modal">关闭</button>
					<button id="editBtn" type="submit" class="btn btn-primary">修改</button>
				</div>
			</form>
		</div>
	</div>
</div>


<customScript> 
	<script type="text/javascript" src="${rc.contextPath}/views/admin/business/expertEval.js"></script> 
</customScript>


